import request from "../../request/request.js";

// 用户查询档案
export function filesSearchJs(data){
    return request({
        url:'api/files/select',
        method:'post',
        data
    })
}
// 用户修改档案
export function updateSearchJs(updateData){
    return request({
        url:'/api/files/updateFiles',
        method:'post',
        data:updateData
    })
}
//逻辑删除
export function delect(id){
    return request({
        url:'/api/files/shanchu',
        method:'post',
        params:{id:id}
    })
}

// 上传档案
export function filesSaveJs(form){
    return request({
        url:'/api/files/uploadFiles',
        method:'post',
        data:form
    })
}
// 档案详情
export function detalisSelectJs(val){
    return request({
        url:'/api/files/details',
        method:'post',
        params:{
            id:val
        }
    })
}

// 查看公开档案
export function commonFilesSelectJs(query){
    return request({
        url:"/api/files/dangan",
        method:'post',
        params:query
    })
}